package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Record;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Record record);

    Record selectByPrimaryKey(Long id);

    List<Record> selectAll(Long stateDeposit);

    int updateByPrimaryKey(Record record);

    List<Record> listDepositOrRecharge(@Param("userId") Long userId, @Param("stateDeposit") Long stateDeposit);

}